#include "common.h"

char** fizzBuzz(int n, int* returnSize);

int main() { return 0; }

char** fizzBuzz(int n, int* returnSize)
{
	char** res = (char**)malloc(n * sizeof(void*));
	for (int i = 1; i <= n; i++) {
		if (i % 15 == 0)
			res[i - 1] = "FizzBuzz";
		else if (i % 5 == 0)
			res[i - 1] = "Buzz";
		else if (i % 3 == 0)
			res[i - 1] = "Fizz";
		else {
			res[i - 1] = malloc(log10(i) + 2);
			sprintf(res[i - 1], "%d", i);
		}
	}

	*returnSize = n;
	return res;
}
